<?php

class Pipes_Value_Template_CamelCapsToDatabase 
{
	private $_value = '';

	public function __construct($projectName) {
		$this->_value = strtolower(preg_replace('/(.)([A-Z])/', '$1_$2', $projectName));
	}

	public function __get($key) {
		$return = null;
		if ($key == 'value') {
			$return = $this->_value;
		}

		return $return;
	}

	public function __toString() {
		return $this->value;
	}
}
